<?php
   $actual_action = sfContext::getInstance()->getActionName().'_'.sfContext::getInstance()->getModuleName();
?>
<div id="profil_menu" class="span-4">
    <h3>GENERAL</h3>
     <ul>
        <li id="<?php echo $actual_action == 'show_player'? 'profil-on-action' : '' ?>">
            <?php echo $actual_action != 'show_player' ? link_to(__('Joueur'), 'show_player', $ktd_player) : __('<span class="bold">Profil</span>') ?>
        </li>
        
        <li id="<?php echo $actual_action == 'showcharacters_player'? 'profil-on-action' : '' ?>"><?php echo $ktd_player->hasCharacters() ?
                                ($actual_action != 'showcharacters_player'  ? link_to(__('Personnages'), 'show_player_characters', $ktd_player) : __('<span class="bold">Personnages</span>')) : __('Pas de personnages') ?></li>
        <li><?php echo __("Trophées") ?></li>
     </ul>      
    <h3>OPTIONS</h3>
    <ul>
        <li>
            <?php echo __("Envoyer un MP") ?>
        </li>
        <li>
            <?php echo link_to(__("Messages"), 'pm_box'); ?>
        </li>
    </ul>
    <?php if($sf_user->isAuthenticated() && $sf_user->getGuardUser()->hasRelPermission('edit_profil', $ktd_player)) : ?>
    <h3>REGLAGES</h3>
    <ul>
            <li id="<?php echo $actual_action == 'edit_player'? 'profil-on-action' : '' ?>">
                <?php echo $actual_action != 'edit_player' ? link_to(__('Modifier le profil'), 'edit_player', $ktd_player) : __('<span class="bold">Modifier le profil</span>')?>
            </li>
    </ul>
    <?php endif; ?>

 
</div>